<?php 

class Mhidden extends sElement {
	public function __construct($name, $value) {
		$this->setName($name);
		$this->setValue($value);
	}

	public function getHTML() {
		$m = array();
		$v = $this->getValue();
		if(!empty($v)) {
			$m[] = 'value="'.htmlspecialchars($v, null, Mform::$encoding).'"';
		}

		return '<input type="hidden" name="'.$this->getName().'" '.implode(' ', $m).' />';
	}
}

?>